﻿
namespace KingerRobot.MexicoSailunMDC.SpiService;
internal interface IWcsAsrsCrnAbnormalOutPut
{
    /// <summary>
    /// 根据堆垛机获取出库异常出库库位信息
    /// </summary>
    /// <param name="crnId"></param>
    /// <returns></returns>
    POWcsAsrsCrnAbnormalOutput GetAsrsCrnAbnormalOutPutByCrnId(long crnId);
    /// <summary>
    /// 根据放胎位获取出库异常出库库位信息
    /// </summary>
    /// <param name="crnId"></param>
    /// <returns></returns>
    POWcsAsrsCrnAbnormalOutput GetAsrsCrnAbnormalOutPutByLocId(long locId);

    List<POWcsAsrsCrnAbnormalOutput> GetWcsAsrsCrnAbnormalOutputs();

    /// <summary>
    /// 通过sku查找异常货位(判断是否已在库中)
    /// </summary>
    /// <param name="pORcsLocations"></param>
    /// <param name="skuId"></param>
    /// <param name="fork"></param>
    /// <returns></returns>
    long GetTargetAbnormalSingleLoc(long? skuId, CrnForkInfo fork, int outPutType);

}